<?php
if($html->getContent('type')=='newsletter')
{
    if($actPost=='sendfriend')
    {
        include('sendfriend.tpl');
    }
    ImportClass('newsletter');
    echo BuildHTMLNewsLetter($html->getCategory());
}
else
{
?>
<div class="page">
    <?php echo $html->getTitle('cName')?>    
    <div class="Contentsub">
        <?php echo $html->getContent('cIntro')?>
    </div>
   <div class="Content2">
        <div class="subscribe1">
            <div class="t"><?echo __("Subscribe to e-newsletter")?></div>   
            <input class="tfield in" id="subscribe_name" style="width: 200px;" value="<?php echo __("enter your name")?>" onfocus="if(this.v==undefined){this.v=this.value};if(this.value==this.v)this.value=''" onblur="if(this.value=='')this.value=this.v"/>         
            <input class="tfield in" id="subscribe" value="<?php echo __("enter your email address")?>" onfocus="if(this.v==undefined){this.v=this.value};if(this.value==this.v)this.value=''" onblur="if(this.value=='')this.value=this.v" />            
             
            <a id="butsubscribe" href="#subs" onclick="subscribe()"><?php echo __("Submit")?></a>
            &nbsp;<span id="msgalert"></span>
        </div>
        <?php echoScript('subscribe')?>
        <div class="clear line2">&nbsp;</div>
        <div class="ll">
            <div class="tt"><?php echo __('Archived Newsletters ')?></div>
            <div id="ajaxpage">
            <?php echo showSplitPage()?>
            <?php echo $newshtml?>
            <?php echo showSplitPage()?>
            </div>
        </div>       
   </div>
   <div class="clear">&nbsp;<br />&nbsp;</div>
   
</div>
<?php
}
?>